Developer Documentation

QuickTime 4 API Documentation

QuickTime for Java

| Previous | Chapter Top | Next |

The ImageSpec Interface

The ImageSpec interface expresses the close relationship between image data and an ImageDescription that describes it. Figure 5 illustrates all of the ImageSpec -derived classes in the QuickTime for Java API.

The image data itself is represented by an object that implements the EncodedImage interface. This interface allows image data to be stored in either raw memory, accessed using pointers, or in a Java int or byte array. Any object that implements the ImageSpec interface can have its image rendered by either the ImagePresenter to a destination QDGraphics or by a TwoDSprite to its container SWCompositor .

The ImageSpec interface expresses the commonality of QuickTime's media model, specifically with regard to image data, and unifies the many possible constructions and imaging services that QuickTime provides.

If your application requires a particular format for generating image data, then it can implement the ImageSpec interface and thus have QuickTime use this custom class wherever the QuickTime for Java API uses existing ImageSpec objects.

Figure 5 Image implementations


© 1999 Apple Computer, Inc.

| Previous | Chapter Top | Next |